from todo_api_project.BASE.myBase import Tools
from todo_api_project.API.login_api import login_module


class queryTask_module(Tools):
    path = '/task/info'

    def queryTask_action(self,status):
        data = {
            "status": status
        }
        head = login_module(self.session).get_head()
        res = self.session.get(url=self.hosturl+self.path,params=data,headers=head).json()
        return res
